package com.oppo.result;


import lombok.Getter;

/**
 * 统一返回结果状态信息类
 *
 * @author makejava
 * @since 2022-01-28 16:23:04
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(2012, "服务异常"),

    PAY_RUN(205, "自定义1"),

    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限"),
    SECKILL_NO_START(210, "自定义2"),
    SECKILL_RUN(211, "自定义3"),
    SECKILL_NO_PAY_ORDER(212, "自定义4"),
    SECKILL_FINISH(213, "自定义5"),
    SECKILL_END(214, "自定义6"),
    SECKILL_SUCCESS(215, "自定义7"),
    SECKILL_FAIL(216, "自定义8"),
    SECKILL_ILLEGAL(217, "自定义9"),
    SECKILL_ORDER_SUCCESS(218, "自定义10"),
    ;

    private final Integer code;

    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


}

